﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="_liga.ascx.cs" Inherits="BoxScore.liga._liga" %>



    <asp:DetailsView ID="DetailsView1" runat="server" GridLines="None" 
        AutoGenerateRows="False" DataSourceID="ObjectDataSource1">
        <Fields>
            <asp:TemplateField HeaderText="" SortExpression="logo" ShowHeader="False">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("logo") %>'></asp:TextBox>
                </EditItemTemplate>
                <InsertItemTemplate>
                    <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("logo") %>'></asp:TextBox>
                </InsertItemTemplate>
                <ItemTemplate>
                <table>
                    <tr>
                        <td>
                            <asp:Image ID="Image1" runat="server" Width="150px" ImageUrl='<%# "images/" + Eval("logo", "{0}") %>' />
                        </td>
                        <td>
                            <h1>
                            <asp:Label ID="Label2" runat="server" Text='<%# Eval("nombre", "{0}") %>' ></asp:Label>
                            </h1>
                        </td>
                    </tr>
                </table>
                    
                    <br />
                    <asp:Label ID="Label1" runat="server" Font-Italic="True" 
                        Text='<%# Eval("descripcion", "{0}") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="nombre" HeaderText="Nombre" 
                SortExpression="nombre" Visible="False" />
            <asp:BoundField DataField="id" HeaderText="id" SortExpression="id" 
                Visible="False" />
            <asp:BoundField DataField="descripcion" SortExpression="descripcion" 
                Visible="False" />
        </Fields>
    </asp:DetailsView>

    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
        SelectMethod="getLiga" TypeName="BoxScore.Model.BoxScoreBD">
        <SelectParameters>
            <asp:QueryStringParameter DefaultValue="1" Name="id" QueryStringField="id" 
                Type="Int32" />
        </SelectParameters>
    </asp:ObjectDataSource>
